from urllib.parse import unquote

a1 = []
with open("access.log", "rb") as f:
    for i in f.readlines():
        tmp = unquote(i.strip())
        if "select(group_concat(flag))from(flag)" in tmp and "200 921" in tmp:
            a1.append(tmp)

a2 = {}
import re

for i in a1:
    re1 = re.search(r",(\d+),1\)\)>(\d+),", i)
    a2[re1[1]] = re1[2]
print(a2)

flag = ''
for i in a2:
    flag += chr(int(a2[i]))
print(flag)
